package com.java.simple.smallspring.core.convert.converter;

/**
 * @author zhoujunlin
 * @date 2022年11月19日 13:10
 * @desc
 */
public interface ConverterFactory<S, R> {

    /**
     * Get the converter to convert from S to target type T, where T is also an instance of R
     *
     * @param targetType the target type
     * @param <T>
     * @return a converter from S to T
     */
    <T extends R> Converter<S, T> getConverter(Class<T> targetType);

}
